<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<form:form method="POST" commandName="vehicle">
	<center>
		<table>
			<tr>
				<td align="right" width="20%">Vehicle Indentification Number (VIN):</td>
				<td style="width: 20%"><form:input readonly="true" path="vin"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td align="right" width="20%">Vehicle Number:</td>
				<td style="width: 20%"><form:input readonly="true" path="vehicleNumber"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td align="right" width="20%">Make:</td>
				<td style="width: 40%"><form:input readonly="true" path="make" /></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td align="right" width="20%">Model:</td>
				<td style="width: 40%"><form:input readonly="true" path="model"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td align="right" width="20%">Event date:</td>
				<td style="width: 20%"><form:input readonly="true" path="history[0].eventDate"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td align="right" width="20%">Location:</td>
				<td style="width: 20%"><form:input readonly="true" path="history[0].eventLocation" /></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td align="right" width="20%">Odometer reading:</td>
				<td style="width: 40%"><form:input readonly="true" path="history[0].reading" /></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td align="right" width="20%">Data Source:</td>
				<td style="width: 40%"><form:input readonly="true" path="history[0].dataSource" /></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td align="right" width="20%">Details:</td>
				<td style="width: 40%"><form:textarea readonly="true" path="history[0].details"/></td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td colspan="2">
				<c:choose>
					<c:when test="${empty message}">
						<input type="submit" name="_cancel" value="Cancel" /> 
						<input type="submit" name="_target1" value="Back" />
						<input type="submit" name="_finish" value="Finish" />
					</c:when>
					<c:otherwise>
						<input type="submit" name="_cancel" value="Home" />
					</c:otherwise>
				</c:choose>
				</td>
			</tr>
		</table>
	</center>
</form:form>
